﻿using JeanFish.Blog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business = JeanFish.Blog.Business;

namespace JeanFish.Demo.Web
{
    public partial class Default : System.Web.UI.Page
    {
        
        protected async void Page_Load(object sender, EventArgs e)
        {
            var posts = await BlogService.Current.Blog.ListPosts(new Paging(0, 1));
            var post = posts.First();
            Post.Data = post;
        }
    }
}